/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Mozilla Communicator client code, released
 * March 31, 1998.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-2001
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/* ===== xulscrollbars.css ==============================================
  == Styles used by XUL scrollbar-related elements.
  ======================================================================= */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

/* ::::: scrollbar ::::: */

scrollbar {
  -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  cursor: default;
  background: url("chrome://global/skin/scrollbar/slider.gif");
}

scrollbar[orient="vertical"] {
  background: url("chrome://global/skin/scrollbar/track-vertical.png") repeat-y #000000;
  width:15px;
}


scrollbar[orient="horizontal"] {
  background: url("chrome://global/skin/scrollbar/track-horizontal.png") repeat-x #000000;
  height:15px;
}

thumb {
  border: 3px solid;
  -moz-border-radius: 15px;
  -moz-border-top-colors: rgba( 0, 0, 0, .8) rgba( 0, 0, 0, .4) rgba( 0, 0, 0, .2);
  -moz-border-right-colors: rgba( 0, 0, 0, .8) rgba( 0, 0, 0, .4) rgba( 0, 0, 0, .2);
  -moz-border-bottom-colors: rgba( 0, 0, 0, .8) rgba( 0, 0, 0, .4) rgba( 0, 0, 0, .2);
  -moz-border-left-colors: rgba( 0, 0, 0, .8) rgba( 0, 0, 0, .4) rgba( 0, 0, 0, .2);
}

/* ::::: thumb (vertical) ::::: */

thumb[orient="vertical"] {
  background:url("chrome://global/skin/scrollbar/thumb-vert-body.png") repeat center;
}

thumb[orient="vertical"]:hover,
thumb[orient="vertical"]:active {
  background:url("chrome://global/skin/scrollbar/thumb-vert-hover.png") repeat center;
}

/* ::::: thumb (horizontal) ::::: */

thumb[orient="horizontal"] {
  background:url("chrome://global/skin/scrollbar/thumb-horz-body.png") repeat center;
}

thumb[orient="horizontal"]:hover,
thumb[orient="horizontal"]:active {
  background:url("chrome://global/skin/scrollbar/thumb-horz-hover.png") repeat center;
}

/* ::::: square at the corner of two scrollbars ::::: */

scrollcorner { 
  -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
  background: #000000 url("chrome://global/skin/scrollbar/corner.png");
  border: 0px solid;
}

/* ::::: scrollbar button ::::: */

scrollbarbutton {
  background-repeat: no-repeat;
  height: 15px;
  width: 15px;
}

/*right Arrow*/
scrollbarbutton[type="increment"] {
  background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
  min-height: 15px;
  min-width: 13px;
}

scrollbarbutton[type="increment"]:hover:active {
  background-image: url("chrome://global/skin/scrollbar/arrow-right-active.png");
}

/*down Arrow*/
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
  min-height: 13px;
  min-width: 15px;
}

scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover:active {
  background-image: url("chrome://global/skin/scrollbar/arrow-down-active.png");
}

/*left Arrow*/
scrollbarbutton[type="decrement"] {
   background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
  min-height: 15px;
  min-width: 13px;
}

scrollbarbutton[type="decrement"]:hover:active {
   background-image: url("chrome://global/skin/scrollbar/arrow-left-active.png");
}

/*up Arrow*/

scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
   background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
  min-height: 13px;
  min-width: 15px;
}

scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover:active {
   background-image: url("chrome://global/skin/scrollbar/arrow-up-active.png");
}

/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
@media print {
  /* ::::: scrollbar ::::: */

  html|div scrollbar {
    -moz-appearance: scrollbartrack-horizontal;
    -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
    cursor: default;
    background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
  }

  html|div scrollbar[orient="vertical"] 
  {
     -moz-appearance: scrollbartrack-vertical;
  }

  /* ::::: borders for thumb and buttons ::::: */

  html|div thumb,
  html|div scrollbarbutton {
    border: 0px solid;
    -moz-border-top-colors: #D4D0C8 #FFFFFF;
    -moz-border-right-colors: #404040 #808080;
    -moz-border-bottom-colors: #404040 #808080;
    -moz-border-left-colors: #D4D0C8 #FFFFFF;
    background-color: #F7F7F7;
  }

  /* ::::: thumb (horizontal) ::::: */

  html|div thumb {
    -moz-appearance: scrollbarthumb-vertical;
    min-height: 8px;
  }

  html|div thumb[orient="horizontal"] {
    -moz-appearance: scrollbarthumb-horizontal;
    min-width: 8px;
  }

  html|div thumb > gripper {
    -moz-appearance: scrollbargripper-vertical;
  }

  html|div thumb[orient="horizontal"] > gripper {
    -moz-appearance: scrollbargripper-horizontal;
  }

  /* ::::: scrollbar button ::::: */

  html|div scrollbarbutton {
    background: #F7F7F7 no-repeat 0px 1px;
    min-width: 15px;
    min-height: 15px;
  }

  html|div scrollbarbutton:hover:active {
    -moz-border-top-colors: #808080 -moz-Dialog;
    -moz-border-right-colors: #808080 -moz-Dialog;
    -moz-border-bottom-colors: #808080 -moz-Dialog;
    -moz-border-left-colors: #808080 -moz-Dialog;
    background-position: 1px 2px;
  }

  /* ..... increment .... */

  html|div scrollbarbutton[type="increment"] {
    -moz-appearance: scrollbarbutton-right;
    background-image: url("chrome://global/skin/arrow/arrow-right.png")
  }
s
  html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
    -moz-appearance: scrollbarbutton-down;
    background-image: url("chrome://global/skin/arrow/arrow-down.png")
  }

  /* ..... decrement .... */

  html|div scrollbarbutton[type="decrement"] {
    -moz-appearance: scrollbarbutton-left;
     background-image: url("chrome://global/skin/arrow/arrow-left.png")
  }

  html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
    -moz-appearance: scrollbarbutton-up;
     background-image: url("chrome://global/skin/arrow/arrow-up.png")
  }

}

